import {createMemoryHistory, createRouter, createWebHashHistory} from 'vue-router'

// 我们称Son为视图
import Son from "@/components/1路由的基本使用/1.路由初体验.vue"


// 定义路由路径
const routes = [
    // path：路由路径
    // component：路径跳转后显示的组件是谁
    { path: '/a', component: Son },
]

const router = createRouter({
    // history: createMemoryHistory(),
    history: createWebHashHistory(),
    routes,
})

export default router
